<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>随机粒子特效</title>
  <style>
    html, body{
      margin: 0;
      padding: 0;
      overflow: hidden;
      cursor: none;
      background-color: black;
    }
  </style>
</head>
<body>
  <canvas id="canvas"></canvas>
  <script>
    window.onload = function() {
      var ctx = document.getElementById('canvas'), wH = '', wW = '', conter = {};
      conter = ctx.getContext('2d');
      wH = document.documentElement.clientHeight;
      wW = document.documentElement.clientWidth;
      
    };
  </script>
</body>
</html>